//调用接口配置文件
import { request } from 'config/request'
// 定义接口

// 获取资讯列表
export async function getNewsList(params) {
    return request({
        url: 'admin/news/list',
        method: 'POST',
        data: params,
        headers:{
          "Content-type":"application/json",
        }
    });
};
// 获取级联列表
export async function parentCode(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//获取productId
export async function getProductId(params) {
    return request({
        url: 'admin/estate/list',
        method: 'POST',
        data: params,
    });
};
export async function deleteDetail(params) {
    return request({
        url: 'admin/news/delete',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};

///生成太阳码
export async function generateQrCode(params) {
    return request({
        url: 'admin/wx/generateQrCode',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};